package com.anjubao.parking.municipal.parkinglot.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 新增/编辑充电桩 表单
 *
 * @author anjubao
 */
@Getter
@Setter
@ApiModel(value = "ParkingLotDeviceChargingPileAddForm",description = "新增/编辑充电桩表单")
@ToString
public class ParkingLotDeviceChargingPileAddForm {

//    @TableField(value="id")
//    @ApiModelProperty(name="id",value = "设备id")
//    private Long id;
//
//    @TableField(value="code")
//    @ApiModelProperty(name="code",value = "设备编号")
//    private String code;

    @NotNull(message = "机器码machineCode 不能为空")
    @ApiModelProperty(name="machineCode",value = "机器码",required = true)
    private String machineCode;

    @NotNull(message = "设备名称name 不能为空")
    @ApiModelProperty(name="name",value = "设备名称",required = true)
    private String name;

//    @TableField(value="parking_lot_bill_rule_id")
//    @ApiModelProperty(name="parkingLotBillRuleId",value = "停车场计费规则")
//    private Long parkingLotBillRuleId;

//    @NotNull
    @ApiModelProperty(name="parkingLotBillRuleCode",value = "停车场计费规则编码")
    private String parkingLotBillRuleCode;

//    @TableField(value="parking_lot_slot_id")
//    @ApiModelProperty(name="parkingLotSlotId",value = "停车场停车位ID")
//    private Long parkingLotSlotId;

    @NotNull(message = "停车场停车位编号parkingLotSlotCode 不能为空")
    @ApiModelProperty(name = "parkingLotSlotCode", value = "停车场停车位编号", required = true)
    private String parkingLotSlotCode;

//    @TableField(value="parking_lot_slot_name")
//    @ApiModelProperty(name="parkingLotSlotName",value = "停车场停车位名称")
//    private String parkingLotSlotName;

//    @TableField(value="parking_lot_id")
//    @ApiModelProperty(name="parkingLotId",value = "停车场ID")
//    private Long parkingLotId;

//    @NotNull
//    @TableField(value="parking_lot_code")
//    @ApiModelProperty(name="parkingLotCode",value = "停车场编号,code生成规则为100(3位)+yyMMddHHmm(10位)+id(19位)",required = true)
//    private String parkingLotCode;
//
//    @TableField(value="parking_lot_name")
//    @ApiModelProperty(name="parkingLotName",value = "停车场名称")
//    private String parkingLotName;

//    @NotNull
//    @TableField(value="parking_lot_province_id")
//    @ApiModelProperty(name="parkingLotProvinceId",value = "停车场所在省份ID",required = true)
//    private Integer parkingLotProvinceId;

//    @TableField(value="parking_lot_province_name")
//    @ApiModelProperty(name="parkingLotProvinceName",value = "停车场所在省份名称")
//    private String parkingLotProvinceName;

//    @NotNull
//    @TableField(value="parking_lot_city_id")
//    @ApiModelProperty(name="parkingLotCityId",value = "停车场所在城市ID",required = true)
//    private Integer parkingLotCityId;

//    @TableField(value="parking_lot_city_name")
//    @ApiModelProperty(name="parkingLotCityName",value = "停车场所在城市名称")
//    private String parkingLotCityName;

//    @NotNull
//    @TableField(value="parking_lot_district_id")
//    @ApiModelProperty(name="parkingLotDistrictId",value = "停车场所在区域ID",required = true)
//    private Integer parkingLotDistrictId;

//    @TableField(value="parking_lot_district_name")
//    @ApiModelProperty(name="parkingLotDistrictName",value = "停车场所在区域名称")
//    private String parkingLotDistrictName;

    @NotNull(message = "maxPower 不能为空")
    @Positive(message = "maxPower 只能为正数")
    @ApiModelProperty(name = "maxPower", value = "最大功率", required = true)
    private Integer maxPower;

//    @NotNull
//    @TableField(value="status")
//    @ApiModelProperty(name="status",value = "状态 -1：故障，0：禁用，1：正常，2：充电中",required = true)
//    private Integer status;
//
//    @NotNull
//    @TableField(value="is_online")
//    @ApiModelProperty(name="isOnline",value = "运行状态 0:断线 1:在线",required = true)
//    private Integer isOnline;

//    @TableField(value="last_report_time")
//    @ApiModelProperty(name="lastReportTime",value = "最后报到时间")
//    private LocalDateTime lastReportTime;
//
    @ApiModelProperty(name="note",value = "备注")
    private String note;


}
